/*
 * Copyright (c) 2025 [ByteDance Ltd. and/or its affiliates.] and/or its affiliates
 * SPDX-License-Identifier: LGPL v2.1+
*/
#ifndef ANDROID_FFmpegIOCryptorUTILS_H
#define ANDROID_FFmpegIOCryptorUTILS_H

extern "C" {
#include "libavformat/avformat.h"
}

class FFmpegIOCryptorUtils {
public:
    /**
     * find mov/mp4 box tag
     * @param pb
     * @param targetTagName
     * @param maxBytes
     * @param targetTagSize
     * @return
     */
    static bool findTag(AVIOContext *pb, uint32_t targetTagName, uint32_t maxBytes, uint32_t *targetTagSize);
};


#endif //ANDROID_FFmpegIOCryptorUTILS_H
